CREATE TABLE [dbo].[T_POST]
(
[POST_ID] [bigint] NOT NULL IDENTITY(1, 1),
[POST_COMMENT] [varchar] (1000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PERSON_ID] [bigint] NULL,
[CREATE_DATE] [datetime] NOT NULL,
[DISABLE_DATE] [datetime] NULL,
[TOPIC_ID] [bigint] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[T_POST] ADD CONSTRAINT [PK__T_POST__63FD1766D8825444] PRIMARY KEY CLUSTERED  ([POST_ID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[T_POST] ADD CONSTRAINT [FK__T_POST__PERSON_I__59063A47] FOREIGN KEY ([PERSON_ID]) REFERENCES [dbo].[T_PERSON] ([PERSON_ID])
GO
ALTER TABLE [dbo].[T_POST] ADD CONSTRAINT [FK__T_POST__TOPIC_ID__59FA5E80] FOREIGN KEY ([TOPIC_ID]) REFERENCES [dbo].[T_TOPIC] ([TOPIC_ID])
GO
